package com.lagou;

import com.lagou.curator.NoteCurator;
import com.lagou.service.UserServiceImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Server1Bootstrap {

    public static void main(String[] args) throws InterruptedException {

        SpringApplication.run(Server1Bootstrap.class, args);

        UserServiceImpl.startServer("127.0.0.1", 8991);
        //创建zookeeper临时系列节点
        NoteCurator noteCurator = new NoteCurator();
        noteCurator.createNote("127.0.0.1:8991");
    }


}
